package com.gzsxy.esjy.service.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gzsxy.esjy.service.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author zxl
 * @since 2021-11-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_order")
@ApiModel(value="Order对象", description="订单")
public class Order extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单编号")
    private String orderCode;

    @ApiModelProperty(value = "总价")
    private Double sumPrice;

    @ApiModelProperty(value = "状态-0待支付\\1待发货\\2已发货\\3待评论\\4已完成\\5已关闭")
    private Integer status;

    /**
     * 1.在线支付 2.货到付款
     */
    @ApiModelProperty(value = "支付方式")
    private Integer paytype;
    /**
     * 1.微信 2.银行卡 3.钱包 4.支付宝
     */
    @ApiModelProperty(value = "支付方式")
    private Integer paytype2;

    @ApiModelProperty(value = "前台发起订单的用户id")
    private String userId;

    @ApiModelProperty(value = "收货人ID（外键）")
    private String resourceId;




}
